import { defineStore } from 'pinia'
import { RouteRecordRaw } from 'vue-router'

export const routerStore = defineStore('routerStore', {
	state: () => ({
		routes: [] as RouteRecordRaw[],
        menuPaths: [] as RouteRecordRaw[]
	}),

	actions: {
		setRoutes(routers: RouteRecordRaw[]) {
			this.routes = routers
		},

        setMenuPaths(menuPaths: RouteRecordRaw[]){
            this.menuPaths = menuPaths
        }
	}
})